//Function:calculate the factofial of the exact number

#include <iostream>
#include <iomanip>
using namespace std;

unsigned long factofial(int number);

int main()
{
	for(int i=1; i<=10; i++)
	{
		cout << setw(2) << i << "!=" << factofial(i) << endl; 
	}
	return 0;
}

unsigned long factofial(int number)
{
	if(number == 1)
		return 1;
	else
		return (number*factofial(number-1));	
}
